﻿using BarcodeDelay.HttpClient;
using BarcodeDelay.utility;
using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace BarcodeDelay.business
{
    public class MemberInfo
    {
        public event Action DoneMemInfo;
        private static MemberInfo instance;
        public static MemberInfo Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new MemberInfo();
                }
                return instance;
            }
        }

        public static Hashtable ht_Each_Center_Time = new Hashtable();

        public static Hashtable ht_Far_Company = new Hashtable();

        public static Hashtable ht_NextDay_Company = new Hashtable();
        public bool isCheckDeliverDelay = true;

        public string jmsUser = "";
        public string token = "";
        public string lanshoutoken = "";
        public string templeteTransfer = "";
        public string templeteAssign = "";
        public string templeteQS = "";
        public string templeteReturn = "";
        public string templeteCuijian = "";
        public string filter = "";

        public string userName = "";
        public string userPwd = "";

        

        public Hashtable htStaMap = new Hashtable();
        public Hashtable htFilterMap = new Hashtable();

        public Hashtable htLeaveMsgOmitSiteMap = new Hashtable();


        public Hashtable htSiteCityMap = new Hashtable();
        public Hashtable htDesCityEffi = new Hashtable();

        private Thread fThread = null;
        public void BeginMemThread()
        {
            try
            {
                fThread = new Thread(new ThreadStart(getUserDayLeft));
                fThread.Start();
            }
            catch (Exception ex)
            {

            }
            

        }

        public void initMember()
        {
            //添加新网点注意添加三个地方 htSiteCityMap 城市，htStaMap 有效日期 ，htFilterMap 下一站
            htSiteCityMap["金华市东阳网点"] = "金华市";
            htSiteCityMap["金华东阳网点"] = "金华市";

            htSiteCityMap["义乌后宅集散点"] = "金华市";

            htSiteCityMap["义乌科技园网点"] = "金华市";

            

            htSiteCityMap["义乌市新城西网点"] = "金华市";
            htSiteCityMap["金华婺城南网点"] = "金华市";
            htSiteCityMap["义乌陆港网点"] = "金华市";
            htSiteCityMap["义乌荷叶塘网点"] = "金华市";


            htSiteCityMap["湖州吴兴织里网点"] = "湖州市";
            htSiteCityMap["沈阳于洪益宁网点"] = "沈阳市";
            htSiteCityMap["沈阳于洪百盛网点"] = "沈阳市";

            htSiteCityMap["深圳宝安区燕罗塘网点"] = "深圳市";

            htSiteCityMap["义乌城西街道网点"] = "金华市";

            






            htSiteCityMap["阳江江城网点"] = "阳江市";
            htSiteCityMap["阳江阳春黎湖网点"] = "阳江市";
            
            htSiteCityMap["佛山市南海和顺网点"] = "佛山市";

            htSiteCityMap["中山新东升网点"] = "中山市";
            htSiteCityMap["中山沙朗隆平网点"] = "中山市";

            htSiteCityMap["佛山均安百安网点"] = "佛山市";

            htSiteCityMap["佛山南海新盐步网点"] = "佛山市";

            htSiteCityMap["广州白云新永平网点"] = "广州市";
            htSiteCityMap["广州白云新均禾网点"] = "广州市";









            htSiteCityMap["汕尾海丰网点"] = "汕尾市";
            htSiteCityMap["中山古镇曹三网点"] = "中山市";
            htSiteCityMap["深圳龙华区观澜网点"] = "深圳市";
            htSiteCityMap["中山古镇日升网点"] = "中山市";

            htSiteCityMap["中山菊城网点"] = "中山市";

            htSiteCityMap["中山沙溪新网点"] = "中山市";
            htSiteCityMap["中山沙溪镇网点"] = "中山市";
            htSiteCityMap["中山沙溪镇新网点"] = "中山市";
            htSiteCityMap["中山石岐南网点"] = "中山市";
            
            htSiteCityMap["中山古镇新海洲网点"] = "中山市";
            htSiteCityMap["佛山三水西南网点"] = "佛山市";


            htSiteCityMap["宁德蕉城耀泰分部网点"] = "宁德市";


            htSiteCityMap["湛江市麻章网点"] = "湛江市";
            htSiteCityMap["湛江麻章网点"] = "湛江市";

            htSiteCityMap["湛江市城区网点"] = "湛江市";
            htSiteCityMap["湛江城区网点"] = "湛江市";

            htSiteCityMap["湛江市赤坎网点"] = "湛江市";
            htSiteCityMap["湛江赤坎网点"] = "湛江市";
            htSiteCityMap["湛江市赤坎网点"] = "湛江市";

            htSiteCityMap["湛江遂溪网点"] = "湛江市";
            htSiteCityMap["湛江市遂溪网点"] = "湛江市";

            htSiteCityMap["湛江市遂溪市区网点"] = "湛江市";
            htSiteCityMap["湛江市遂溪乡镇网点"] = "湛江市";

            htSiteCityMap["湛江廉江新网点"] = "湛江市";
            htSiteCityMap["湛江市廉江新网点"] = "湛江市";
            htSiteCityMap["湛江市廉江网点"] = "湛江市";

            htSiteCityMap["湛江市吴川网点"] = "湛江市";
            htSiteCityMap["湛江吴川网点"] = "湛江市";
            htSiteCityMap["湛江市吴川新网点"] = "湛江市";
            htSiteCityMap["湛江吴川新网点"] = "湛江市";


            htSiteCityMap["湛江市雷州网点"] = "湛江市";
            htSiteCityMap["湛江雷州网点"] = "湛江市";

            htSiteCityMap["湛江市坡头网点"] = "湛江市";
            htSiteCityMap["湛江坡头网点"] = "湛江市";

            htSiteCityMap["湛江市市区网点"] = "湛江市";
            htSiteCityMap["湛江市开发区新网点"] = "湛江市";
            htSiteCityMap["湛江市坡头网点"] = "湛江市";


            htSiteCityMap["湛江市徐闻网点"] = "湛江市";
            htSiteCityMap["湛江徐闻网点"] = "湛江市";
            htSiteCityMap["湛江徐闻新网点"] = "湛江市";
            htSiteCityMap["湛江市徐闻新网点"] = "湛江市";
            htSiteCityMap["湛江遂溪城区网点"] = "湛江市";

            htSiteCityMap["湛江市廉江网点"] = "湛江市";
            htSiteCityMap["湛江市市区网点"] = "湛江市";

            htSiteCityMap["湛江市遂溪乡镇网点"] = "湛江市";
            htSiteCityMap["湛江市雷州新网点"] = "湛江市";

            htSiteCityMap["湛江市城区网点"] = "湛江市";

            htSiteCityMap["湛江市赤坎网点"] = "湛江市";






            htSiteCityMap["茂名市电白网点"] = "茂名市";
            htSiteCityMap["茂名电白网点"] = "茂名市";

            htSiteCityMap["茂名市信宜网点"] = "茂名市";
            htSiteCityMap["茂名市信宜网点"] = "茂名市";

            htSiteCityMap["茂名市高州新网点"] = "茂名市";
            htSiteCityMap["茂名高州新网点"] = "茂名市";

            htSiteCityMap["茂名市化州网点"] = "茂名市";
            htSiteCityMap["茂名化州网点"] = "茂名市";

            htSiteCityMap["茂名市茂南网点"] = "茂名市";
            htSiteCityMap["茂名茂南网点"] = "茂名市";

            //中山古镇
            htSiteCityMap["中山古镇曹三网点"] = "中山市";
            htSiteCityMap["中山古镇新海州网点"] = "中山市";

            htSiteCityMap["厦门岭兜网点"] = "厦门市";

            htSiteCityMap["义乌后宅网点"] = "金华市";
            //广州

            htSiteCityMap["广州花都永昌网点"] = "广州市";
            htSiteCityMap["广州花都镜湖网点"] = "广州市";
            htSiteCityMap["广州花都狮岭网点"] = "广州市";
            htSiteCityMap["广州白云同和新网点"] = "广州市";
            htSiteCityMap["广州白云钟落潭南网点"] = "广州市";
            htSiteCityMap["广州白云望岗网点"] = "广州市";


            //江门
            htSiteCityMap["江门蓬江网点"] = "江门市";
            htSiteCityMap["佛山南海邓岗网点"] = "佛山市";
            htSiteCityMap["汕头潮阳网点"] = "汕头市";


            htSiteCityMap["晋中榆次花园路网点"] = "晋中市";

            htSiteCityMap["太原迎泽朝阳网点"] = "太原市";

            htSiteCityMap["佛山南海区平洲网点"] = "佛山市";
            htSiteCityMap["合肥瑶海金鑫网点"] = "合肥市";
            htSiteCityMap["宁波余姚泗门镇网点"] = "宁波市";





            htStaMap["金华婺城南网点"] = "2022-01-30 23:59:00";
            htStaMap["义乌陆港网点"] = "2022-06-01 01:59:00";





            htStaMap["沈阳于洪益宁网点"] = "2024-05-31 23:00:00";
            htStaMap["沈阳于洪百盛网点"] = "2024-05-31 23:00:00";

            //于娟的网点



            htStaMap["广州白云钟落潭南网点"] = "2023-11-30 23:59:00";
            htStaMap["义乌荷叶塘网点"] = "2023-11-30 23:59:00";
            htStaMap["金华东阳网点"] = "2023-11-30 23:59:00";
            htStaMap["湖州吴兴织里网点"] = "2023-11-30 23:59:00";
            htStaMap["汕头潮阳网点"] = "2023-11-30 23:59:00";
            htStaMap["深圳宝安区燕罗塘网点"] = "2023-11-30 23:59:00";

            htStaMap["金华金东网点"] = "2023-11-30 23:59:00";
            htStaMap["深圳宝安区松岗网点"] = "2023-11-30 23:59:00";
            htStaMap["义乌大塘下网点"] = "2023-11-30 23:59:00";
            htStaMap["义乌苏溪网点"] = "2023-11-30 23:59:00";

            //于娟的网点结束



            htStaMap["义乌城西街道网点"] = "2023-07-31 23:00:00";


            htStaMap["佛山南海新盐步网点"] = "2023-06-25 23:00:00";

            




            htStaMap["广州白云新永平网点"] = "2023-11-25 23:00:00";
            htStaMap["广州白云均禾网点"] = "2023-12-25 23:00:00";












            htStaMap["广州花都永昌网点"] = "2023-03-10 01:59:00";
            htStaMap["广州花都镜湖网点"] = "2023-03-10 01:59:00";
            htStaMap["广州花都狮岭网点"] = "2023-03-10 01:59:00";
            htStaMap["广州白云同和新网点"] = "2023-03-10 01:59:00";
            //htStaMap["广州白云钟落潭南网点"] = "2023-03-10 01:59:00";




            

            //厦门兜岭
            htStaMap["厦门岭兜网点"] = "2022-04-23 23:59:00";




            htStaMap["湛江市市区网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市城区网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市开发区新网点"] = "2024-11-30 13:45:45";

            htStaMap["湛江坡头网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市坡头网点"] = "2024-11-30 13:45:45";


            htStaMap["湛江麻章网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市麻章网点"] = "2024-11-30 13:45:45";
            
            htStaMap["湛江赤坎网点"] = "2024-11-30 13:45:45";

            htStaMap["湛江市遂溪网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市遂溪乡镇网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江遂溪城区网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市遂溪市区网点"] = "2024-11-30 13:45:45";


            htStaMap["湛江市徐闻网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市徐闻新网点"] = "2024-11-30 13:45:45";

            htStaMap["湛江廉江新网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市廉江网点"] = "2024-11-30 13:45:45";

            htStaMap["湛江市廉江新网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市吴川网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江吴川新网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市吴川新网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市雷州网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市雷州新网点"] = "2024-11-30 13:45:45";
            htStaMap["湛江市赤坎网点"] = "2024-11-30 13:45:45";
            



            htStaMap["湛江市市区网点"] = "2024-11-30 13:45:45";
            
            






            htStaMap["茂名市电白网点"] = "2023-12-31 23:59:00";
            htStaMap["茂名市信宜网点"] = "2023-12-31 23:59:00";
            htStaMap["茂名高州新网点"] = "2023-12-31 23:59:00";
            htStaMap["茂名化州网点"] = "2023-12-31 23:59:00";
            htStaMap["茂名茂南网点"] = "2023-12-31 23:59:00";
            htStaMap["义乌后宅网点"] = "2022-12-10 23:59:00";


            htStaMap["阳江江城网点"] = "2023-12-31 23:59:00";
            htStaMap["阳江阳春黎湖网点"] = "2024-03-30 23:59:00";

            htStaMap["阳东集散点"] = "2023-12-31 23:59:00";


            htStaMap["佛山市南海和顺网点"] = "2023-10-15 23:59:00";
            htStaMap["中山新东升网点"] = "2023-10-15 23:59:00";
            htStaMap["佛山均安百安网点"] = "2023-10-15 23:59:00";





            htStaMap["中山古镇新海州网点"] = "2024-02-15 23:59:00";
            
            htStaMap["深圳龙华区观澜网点"] = "2024-02-15 23:59:00";
            htStaMap["中山古镇日升网点"] = "2024-02-15 23:59:00";
            





            htStaMap["中山沙溪新网点"] = "2024-02-15 23:59:00";
            htStaMap["中山沙溪镇网点"] = "2024-02-15 23:59:00";
            htStaMap["中山沙溪镇新网点"] = "2024-02-15 23:59:00";
            htStaMap["广州白云萧岗网点"] = "2024-02-15 23:59:00";
            htStaMap["佛山南海新盐步网点"] = "2024-02-15 23:59:00";
            htStaMap["汕尾海丰网点"] = "2024-02-15 23:59:00";
            htStaMap["广州大石南浦网点"] = "2024-02-15 23:59:00";
            htStaMap["佛山三水西南网点"] = "2024-02-15 23:59:00";
            htStaMap["中山古镇曹三网点"] = "2024-02-15 23:59:00";


            htStaMap["中山石岐南网点"] = "2024-02-15 23:59:00";
            htStaMap["中山沙朗隆平网点"] = "2024-02-15 23:59:00";


            htStaMap["中山古镇新海洲网点"] = "2024-02-15 23:59:00";


            htStaMap["江门蓬江网点"] = "2024-02-15 23:59:00";
            htStaMap["佛山南海邓岗网点"] = "2024-02-15 23:59:00";
            htStaMap["佛山里水洲村网点"] = "2024-02-15 23:59:00";
            

            htStaMap["广州大石会江网点"] = "2024-02-15 23:59:00";
            htStaMap["阳江创业网点"] = "2024-02-15 23:59:00";

            htStaMap["阳江阳东东城网点"] = "2024-02-15 23:59:00";
            htStaMap["运城盐湖美加顺网点"] = "2024-02-15 23:59:00";
            htStaMap["中山菊城网点"] = "2024-02-15 23:59:00";
            //htStaMap["广州白云太和东网点"] = "2023-10-29 23:59:00";
            htStaMap["东莞塘厦振龙网点"] = "2024-02-15 23:59:00";
            htStaMap["东莞厚街白豪网点"] = "2024-02-15 23:59:00";
            htStaMap["揭阳普宁东网点"] = "2024-02-15 23:59:00";
            



            //莫言的网点
            htStaMap["晋中榆次花园路网点"] = "2023-11-30 23:59:00";
            htStaMap["晋中榆次郭家堡网点"] = "2023-11-30 23:59:00";
            htStaMap["晋中榆次花园路网点"] = "2023-11-30 23:59:00";
            htStaMap["晋中榆次龙田网点"] = "2023-11-30 23:59:00";
            htStaMap["太原迎泽朝阳网点"] = "2023-11-30 23:59:00";
            htStaMap["运城盐湖美加顺网点"] = "2023-11-30 23:59:00";
            htStaMap["武威民勤网点"] = "2023-11-30 23:59:00";
            htStaMap["保定安国市网点"] = "2023-11-30 23:59:00";
            htStaMap["运城临猗县网点"] = "2023-11-30 23:59:00";
            htStaMap["大同平城西环路网点"] = "2023-11-30 23:59:00";
            htStaMap["太原小店王村南街网点"] = "2023-11-30 23:59:00";
            htStaMap["宝鸡市金陵路网点"] = "2023-11-30 23:59:00";
            htStaMap["太原小店龙城网点"] = "2023-11-30 23:59:00";

            htStaMap["运城芮城县网点"] = "2023-11-30 23:59:00";
            htStaMap["太原小店庆云街网点"] = "2023-11-30 23:59:00";

            htStaMap["太原万柏林晋阳网点"] = "2023-11-30 23:59:00";

            htStaMap["西安莲湖网点"] = "2023-11-30 23:59:00";

            htStaMap["塑州应县鑫网点"] = "2023-11-30 23:59:00";
            htStaMap["朔州应县鑫网点"] = "2023-11-30 23:59:00";
            htStaMap["晋中榆次大学城网点"] = "2023-11-30 23:59:00";
            htStaMap["晋中榆次锦东网点"] = "2023-11-30 23:59:00";
            htStaMap["太原杏花岭建设北路网点"] = "2023-11-30 23:59:00";
            htStaMap["晋中介休网点"] = "2023-11-30 23:59:00";
            htStaMap["运城永济市网点"] = "2023-11-30 23:59:00";
            htStaMap["西安市纺织城网点"] = "2023-11-30 23:59:00";
            htStaMap["西安市长安韦曲网点"] = "2023-11-30 23:59:00";



            htStaMap["长沙县兴松网点"] = "2023-08-31 23:59:00";
            htStaMap["长沙宁乡网点"] = "2023-07-27 23:59:00";
            htStaMap["长沙浏阳工业园网点"] = "2023-07-27 23:59:00";
            htStaMap["长沙浏阳网点"] = "2023-07-27 23:59:00";
            htStaMap["广州白云石井南网点"] = "2023-09-15 23:59:00";
            htStaMap["广州白云景泰网点"] = "2023-07-27 23:59:00";
            htStaMap["广州白云望岗网点"] = "2023-07-27 23:59:00";
            htStaMap["广州增城新塘网点"] = "2023-07-27 23:59:00";
            htStaMap["广州增城东洲网点"] = "2023-07-27 23:59:00";
            htStaMap["广州花都机场网点"] = "2023-07-27 23:59:00";
            htStaMap["广州花都机场北网点"] = "2023-07-27 23:59:00";

            htStaMap["佛山大沥盐步网点"] = "2024-12-27 23:59:00";

            


            //思密达和Y的网点
            htStaMap["佛山禅城城南网点"] = "2023-11-30 23:59:00";
            htStaMap["佛山禅城沙岗网点"] = "2023-11-30 23:59:00";
            


            //Y的网点
            htStaMap["佛山南海区平洲网点"] = "2023-12-07 23:59:00";


            htStaMap["合肥瑶海金鑫网点"] = "2023-12-07 23:59:00";

            htStaMap["合肥瑶海鑫东网点"] = "2023-12-07 23:59:00";
            
            htStaMap["宁波余姚泗门镇网点"] = "2023-11-07 23:59:00";

            //
            htStaMap["广州海珠赤岗东网点"] = "2023-11-17 23:59:00";


            //htStaMap["金华永康网点"] = "2023-04-20 23:59:00";

            //岸部真明
            //htStaMap["南通崇川网点"] = "2023-10-31 23:59:00";
            //htStaMap["南通南山召良网点"] = "2023-09-15 23:59:00";


            htStaMap["合肥瑶海奥来园网点"] = "2023-11-15 23:59:00";
            htStaMap["广州白云太和东网点"] = "2023-11-15 23:59:00";
            htStaMap["南通海门召良网点"] = "2023-11-15 23:59:00";
            htStaMap["合肥瑶海区新海大道网点"] = "2023-11-15 23:59:00";
            htStaMap["南平邵武市邵阳网点"] = "2023-11-15 23:59:00";
            htStaMap["南平邵武市城郊闽赣网点"] = "2023-11-15 23:59:00";
            htStaMap["台州黄岩永宁网点"] = "2023-11-15 23:59:00";           
            htStaMap["滁州琅琊网点"] = "2023-11-15 23:59:00";
            
            
            


            

            //htStaMap["西安未央宫网点"] = "2023-10-15 23:59:00";            
            
            

            
 






            //钟小妹的网点
            //htStaMap["南通崇川网点"] = "2023-09-15 23:59:00";



            htStaMap["南通海门市区网点"] = "2023-09-10 23:59:00";
            //htStaMap["南通新通州网点"] = "2023-09-10 23:59:00";




            htStaMap["武汉四新网点"] = "2023-09-20 23:59:00";











            htStaMap["宁德蕉城耀泰分部网点"] = "2022-05-30 23:59:00";


            //小乔的网点
            htStaMap["武汉洪山锦绣龙城网点"] = "2023-12-31 23:59:00";
            htStaMap["宁波北仑东部网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉沌口万家湖网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉民族大道网点"] = "2023-12-31 23:59:00";
            htStaMap["随州曾都炎帝大道网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉光谷生物城网点"] = "2023-12-31 23:59:00";

            htStaMap["武汉关东网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉武昌琴园网点"] = "2023-12-31 23:59:00";
  
            htStaMap["武汉四新网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉生物城网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉武昌铁机网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉光谷生物城网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉江夏流芳网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉武昌徐家棚网点"] = "2023-12-31 23:59:00";


            htStaMap["武汉洪山白沙洲网点"] = "2023-12-31 23:59:00";
            htStaMap["武汉汉阳钟家村网点"] = "2023-12-31 23:59:00";

            htStaMap["武汉蔡甸城区网点"] = "2023-12-31 23:59:00";
            htStaMap["保定定兴嘉世网点"] = "2023-12-31 23:59:00";
            

            //菜菜的网点

            htStaMap["东莞厚街白濠网点"] = "2023-10-15 23:59:00";
            htStaMap["广州大石会江网点"] = "2023-10-15 23:59:00";
            htStaMap["常州湖塘万达网点"] = "2023-10-15 23:59:00";
            htStaMap["阳江阳东东城网点 "] = "2023-10-15 23:59:00";

            //万里晴空网点
            htStaMap["无锡梁溪区西门网点"] = "2023-09-15 23:59:00";
            htStaMap["无锡锡山区查桥网点"] = "2023-09-15 23:59:00";
            htStaMap["无锡锡山区东亭网点"] = "2023-09-15 23:59:00";



            //刘萍和兔兔兔的网点 机场和江东
            htStaMap["义乌机场网点"] = "2023-11-20 23:59:00";
            htStaMap["义乌江东网点"] = "2023-11-20 23:59:00";
            htStaMap["义乌新青岩刘网点"] = "2023-11-20 23:59:00";
            htStaMap["义乌凌云网点"] = "2023-11-20 23:59:00";
            htStaMap["义乌新佛堂网点"] = "2023-11-20 23:59:00";
            htStaMap["义乌新九联网点"] = "2023-11-20 23:59:00";



           


            //little Night试用
            htStaMap["义乌下骆宅网点"] = "2023-11-10 23:59:00";


            //little Night试用
            htStaMap["东莞常平思进路网点"] = "2023-10-25 23:59:00";
            htStaMap["东莞常平江厦网点"] = "2023-10-25 23:59:00";
            

            //二娟的客户
            htStaMap["义乌廿南网点"] = "2023-11-15 23:59:00";
            htStaMap["天水建工物流园网点"] = "2023-11-15 23:59:00";
            htStaMap["沈阳新民城乡网点"] = "2023-11-15 23:59:00";
            htStaMap["衢州柯城市区七网点"] = "2023-11-15 23:59:00";


            htStaMap["广州花都新清塘网点"] = "2023-10-24 23:59:00";
            htStaMap["温州乐清东部网点"] = "2023-10-24 23:59:00";


            htStaMap["东莞大朗新洋坑塘网点"] = "2023-09-30 23:59:00";

            //宣的客户
            htStaMap["苏州吴中区城南网点"] = "2023-10-15 23:59:00";

            htStaMap["成都武侯区高升桥网点"] = "2023-11-10 23:59:00";
            htStaMap["汕头和平二部网点"] = "2023-11-10 23:59:00";
            htStaMap["成都武侯区红牌楼网点"] = "2023-11-10 23:59:00";



            htFilterMap["广州白云太和东网点"] = "广州里水转运中心";

            //俊祥网点
            htStaMap["绍兴诸暨大唐一部网点"] = "2023-11-15 23:59:00";


            //跟单
            htStaMap["东莞凤岗竹塘路网点"] = "2023-12-30 23:59:00";
            htStaMap["东莞凤岗电子城网点"] = "2023-12-30 23:59:00";


            //萍姐介绍的
            htStaMap["江门新会网点"] = "2023-11-01 23:00:00";



            //新的 客户
            htStaMap["湖州长兴县网点"] = "2024-02-03 23:00:00";
            htStaMap["松原江南网点"] = "2024-02-03 23:00:00";

            htStaMap["科左后旗金宝屯镇网点"] = "2026-07-03 23:00:00";
            

            //小琴的网点
            htFilterMap["义乌科技园网点"] = "义乌丰树转运中心,金华长丰转运中心";
            htFilterMap["金华东阳网点"] = "义乌丰树转运中心,金华长丰转运中心";
            htFilterMap["金华婺城南网点"] = "义乌丰树转运中心,金华长丰转运中心";
            htFilterMap["义乌陆港网点"] = "义乌丰树转运中心,金华长丰转运中心,义乌丰树转运中心A1";
            htFilterMap["义乌荷叶塘网点"] = "义乌丰树转运中心,金华长丰转运中心,义乌丰树转运中心A1";
            htFilterMap["湖州吴兴织里网点"] = "嘉兴转运中心";
            htFilterMap["沈阳于洪益宁网点"] = "沈阳转运中心A1";
            htFilterMap["沈阳于洪百盛网点"] = "沈阳转运中心A1";

            htFilterMap["汕头潮阳网点"] = "潮汕转运中心,揭阳转运中心";

            htFilterMap["义乌大塘下网点"] = "义乌丰树转运中心,金华长丰转运中心";






            htFilterMap["广州花都永昌网点"] = "广州里水转运中心";
            htFilterMap["广州花都镜湖网点"] = "广州里水转运中心";
            htFilterMap["广州花都狮岭网点"] = "广州里水转运中心";
            htFilterMap["广州白云同和新网点"] = "广州里水转运中心";
            htFilterMap["广州白云钟落潭南网点"] = "广州里水转运中心";
            htFilterMap["广州白云望岗网点"] = "广州里水转运中心";



            htFilterMap["中山古镇曹三网点"] = "古镇鸾鸟集散点";
            htFilterMap["中山菊城网点"] = "古镇鸾鸟集散点";

            htFilterMap["中山古镇新海州网点"] = "中山转运中心";

            htFilterMap["湛江遂溪城区网点"] = "中山转运中心";

            htFilterMap["厦门岭兜网点"] = "厦门转运中心";

            htFilterMap["湛江市麻章网点"] = "中山转运中心";
            htFilterMap["湛江麻章网点"] = "中山转运中心";

            htFilterMap["湛江市城区网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江城区网点"] = "中山转运中心,广州里水转运中心";

            htFilterMap["湛江市赤坎网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江赤坎网点"] = "中山转运中心,广州里水转运中心";

            htFilterMap["湛江遂溪网点"] = "中山转运中心";
            htFilterMap["湛江市遂溪网点"] = "中山转运中心";

            htFilterMap["湛江廉江新网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市廉江网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市廉江新网点"] = "中山转运中心,广州里水转运中心";

            htFilterMap["湛江市吴川网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江吴川网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市吴川新网点"] = "中山转运中心,广州里水转运中心";
            

            htFilterMap["湛江市雷州网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江雷州网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市雷州新网点"] = "中山转运中心,广州里水转运中心";
            

            htFilterMap["湛江市坡头网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江坡头网点"] = "中山转运中心,广州里水转运中心";

            htFilterMap["湛江市徐闻网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江徐闻网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市徐闻新网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市市区网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市遂溪乡镇网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["湛江市赤坎网点"] = "中山转运中心,广州里水转运中心";



            htFilterMap["义乌后宅网点"] = "义乌丰树转运中心,义乌丰树转运中心A1,金华长丰转运中心";



            htFilterMap["茂名市电白网点"] = "茂名市信宜网点,茂名高州新网点,茂名化州网点,茂名茂南网点";
            htFilterMap["茂名市信宜网点"] = "茂名市电白网点,茂名高州新网点,茂名化州网点,茂名茂南网点";
            htFilterMap["茂名高州新网点"] = "茂名市信宜网点,茂名市电白网点,茂名化州网点,茂名茂南网点";
            htFilterMap["茂名化州网点"] = "茂名市信宜网点,茂名市电白网点,茂名高州新网点,茂名茂南网点";
            htFilterMap["茂名茂南网点"] = "茂名市信宜网点,茂名市电白网点,茂名高州新网点,茂名化州网点";

            htFilterMap["阳江江城网点"] = "中山转运中心,广州里水转运中心";
            htFilterMap["阳江阳春黎湖网点"] = "中山转运中心,广州里水转运中心";


           

            htFilterMap["佛山南海新盐步网点"] = "南海盐步集散点";

      


            






            htFilterMap["佛山市南海和顺网点"] = "南海和顺集散点";
            htFilterMap["中山新东升网点"] = "中山转运中心";
            htFilterMap["中山沙朗隆平网点"] = "中山转运中心";

            htFilterMap["佛山均安百安网点"] = "顺德均安集散点";

            

            htFilterMap["中山古镇日升网点"] = "古镇鸾鸟集散点";
            


            htFilterMap["中山沙朗隆平网点"] = "中山转运中心";
            htFilterMap["中山沙溪网点"] = "中山转运中心";
            htFilterMap["中山沙溪镇网点"] = "中山转运中心";
            htFilterMap["中山沙溪新网点"] = "中山转运中心";
            htFilterMap["中山石岐南网点"] = "中山转运中心";

            htFilterMap["江门蓬江网点"] = "中山转运中心";

            htFilterMap["佛山南海邓岗网点"] = "里水长屯集散点";
            htFilterMap["佛山里水洲村网点"] = "里水长屯集散点";
            



            htFilterMap["晋中榆次花园路网点"] = "太原转运中心";
            htFilterMap["太原迎泽朝阳网点"] = "太原转运中心";


            htFilterMap["无锡梁溪区西门网点"] = "无锡转运中心";
            htFilterMap["无锡锡山区查桥网点"] = "无锡转运中心";
            htFilterMap["无锡锡山区东亭网点"] = "无锡转运中心";

            htFilterMap["广州花都新清塘网点"] = "广州里水转运中心";
            htFilterMap["温州乐清东部网点"] = "温州转运中心";
            

            htFilterMap["佛山禅城城南网点"] = "佛山禅南散点";
            htFilterMap["佛山禅城沙岗网点"] = "佛山禅南散点";

            htFilterMap["广州白云新永平网点"] = "广州里水转运中心";

            htFilterMap["东莞凤岗竹塘路网点"] = "深圳转运中心";
            htFilterMap["东莞凤岗电子城网点"] = "深圳转运中心";



            htLeaveMsgOmitSiteMap["阳江江城网点"] = "阳东集散点";
            htLeaveMsgOmitSiteMap["阳江阳春黎湖网点"] = "阳东集散点";
            
            htLeaveMsgOmitSiteMap["阳江阳东网点"] = "阳东集散点";

            htLeaveMsgOmitSiteMap["佛山市南海和顺网点"] = "南海和顺集散点";

            htLeaveMsgOmitSiteMap["佛山均安百安网点"] = "顺德均安集散点";


            htLeaveMsgOmitSiteMap["中山沙溪网点"] = "中山沙溪集散点";
            htLeaveMsgOmitSiteMap["中山沙溪网点"] = "中山沙溪集散点";
            htLeaveMsgOmitSiteMap["中山沙溪新网点"] = "中山沙溪集散点";
            htLeaveMsgOmitSiteMap["中山石岐南网点"] = "中山沙溪集散点";


            htLeaveMsgOmitSiteMap["佛山南海新盐步网点"] = "南海盐步集散点";
            htLeaveMsgOmitSiteMap["广州白云太和东网点"] = "广州白云太和东集散点";


            htLeaveMsgOmitSiteMap["中山古镇曹三网点"] = "古镇鸾鸟集散点";
            htLeaveMsgOmitSiteMap["中山菊城网点"] = "古镇鸾鸟集散点";
            
        }


        public string getDestCity(string siteName)
        {
            string strRes = "";
            try
            {
                string briefCity = siteName.Substring(0, 2);
                foreach(DictionaryEntry de in htDesCityEffi)
                {
                    if(de.Key.ToString().Contains(briefCity))
                    {
                        strRes = de.Key.ToString();
                        break;
                    }
                }
            }
            catch(Exception ex)
            {

            }
            return strRes;
        }
        public void getUserDayLeft()
        {
            try
            {
                
                string siteName = StoParams.Instance.register_site;
                System.DateTime dtBegin = System.DateTime.Now;
                //string postData = "{\"action\":\"mobileLogin\",\"did\":147,\"param\":{\"uid\":\"全角色syf\",\"loginType\":2,\"pwd\":\"\"},\"timeStamp\":\"358240051111110\",\"timestamp\":null,\"token\":null}";

                DateTime dtd = System.DateTime.Now;
                string strToken = Utility.GenerateMD5(dtd.ToString("yyyy-MM-dd HH:mm:ss"));
                string postData = "{\"action\":\"memberContact\",\"siteName\":\"" + siteName + "\",\"timestamp\":\"" + dtd.ToString("yyyy-MM-dd HH:mm:ss") + "\",\"token\":\"" + strToken  +"\",\"version\":\"" + StoParams.Instance.version + "\"}";
                HttpUtility.getContactInfo(postData);
                DoneMemInfo.Invoke();
            }
            catch(Exception ex)
            {

            }
        }

        public void setUseCountTime(int userCountTime,ArrayList strResult)
        {
            try
            {
                
                string[] arrResult = (string[])strResult.ToArray(typeof(string));
                string strAppend = "[";
                foreach(string strLine in strResult)
                {
                    strAppend = strAppend + "\"" + strLine + "\",";
                }
                strAppend = strAppend.TrimEnd(',');
                strAppend = strAppend + "]";


                string siteName = StoParams.Instance.register_site;
                System.DateTime dtBegin = System.DateTime.Now;
                DateTime dtd = System.DateTime.Now;
                string strToken = Utility.GenerateMD5(dtd.ToString("yyyy-MM-dd HH:mm:ss"));
                string postData = "{\"action\":\"memberCount\",\"siteName\":\"" + siteName + "\",\"timestamp\":\"" + dtd.ToString("yyyy-MM-dd HH:mm:ss") + "\",\"token\":\"" + strToken + "\",\"count\":" + userCountTime.ToString() + ",\"records\":" + strAppend + "}";
                HttpUtility.updateDayCount(postData);
            }
            catch (Exception ex)
            {

            }
        }


    }
}
